﻿@model KL.Store.Web.Models.CVModel
@using KL.Store.Core;
@using CaptchaMvc.HtmlHelpers;
@{
    ViewBag.Title = "Başvuru Formu";
    Layout = "~/Views/Shared/" + Parameters.Layout + ".cshtml";
    var columnCssClass = "col-xs-12 col-sm-12 col-md-3 col-lg-2 left first last";
    var contentCssClass = "col-xs-12 col-sm-12 col-md-9 col-lg-10 right";
    if (Parameters.Theme == "DK" || Parameters.Theme == "EO")
    {
        columnCssClass = "col-xs-12 col-sm-12 col-md-4 col-lg-3 left first last";
        contentCssClass = "col-xs-12 col-sm-12 col-md-8 col-lg-9 right";
    }
    else if (Parameters.Theme == "WU")
    {
        columnCssClass = "col-xs-12 col-sm-12 col-md-4 col-lg-3 left";
        contentCssClass = "col-xs-12 col-sm-12 col-md-8 col-lg-9 right";
    }
}
@if (Parameters.Theme == "HA")
{

}
else
{
    <div class="breadcrumb col-xs-12 col-sm-12 col-md-12 col-lg-12">
        <div class="bcBorder"></div>
        <div class="bcLinks">
            <div itemscope itemtype="http://data-vocabulary.org/Breadcrumb">
                <a href="/" itemprop="url">
                    <span itemprop="title">Anasayfa</span>
                </a>›
            </div>
            <div itemscope itemtype="http://data-vocabulary.org/Breadcrumb">
                <a href="/CV" itemprop="url">
                    <span itemprop="title">Başvuru Formu</span>
                </a>
            </div>
        </div>
        <div class="bcBorder"></div>
    </div>
    <div class="clearfix"></div>
}
<div class="@columnCssClass">
    @if (Parameters.Theme == "HA")
    {
        Html.RenderAction("Information", "Partials");
    }
    else
    {
        Html.RenderAction("Categories", "Partials");
    }
    @if (Parameters.ShowTopSellersOnProductPage)
    {
        Html.RenderAction("BestSeller", "Partials");
    }
</div>
<div id="divContactUs" class="@contentCssClass">
    <div class="content">
        <h1>Başvuru Formu</h1>
        @if (!string.IsNullOrEmpty(ViewBag.Result))
        {
            <div style="margin-bottom: 15px;" class="bg-@(ViewBag.Color) bs-bg">
                <p><span class="glyphicon glyphicon-info-sign"></span>&nbsp;@(ViewBag.Result)</p>
            </div>
        }
        @using (Html.BeginForm("CVIndex", "ContactUs", null, FormMethod.Post, new { id = "contactus", name = "contactus", @class = "form-horizontal", @enctype = "multipart/form-data" }))
        {
            <div class="form-group">
                <label for="Name" class="col-xs-12 col-sm-12 col-md-3 col-lg-3 control-label">Adınız <span class="requireStar">*</span> : </label>
                <div class="col-xs-12 col-sm-12 col-md-8 col-lg-6">
                    @Html.TextBoxFor(model => model.FirstName, new { @class = "form-control", @placeHolder = "Adınızı Yazınız" })
                    @Html.ValidationMessageFor(model => model.FirstName)
                </div>
            </div>
            <div class="form-group">
                <label for="Email" class="col-xs-12 col-sm-12 col-md-3 col-lg-3 control-label">Soyadınız <span class="requireStar">*</span> : </label>
                <div class="col-xs-12 col-sm-12 col-md-8 col-lg-6">
                    @Html.TextBoxFor(model => model.LastName, new { @class = "form-control", @placeHolder = "Soyadınızı Yazınız" })
                    @Html.ValidationMessageFor(model => model.LastName)
                </div>
            </div>
            <div class="form-group">
                <label for="Phone" class="col-xs-12 col-sm-12 col-md-3 col-lg-3 control-label">Telefon Numaranız <span class="requireStar">*</span> : </label>
                <div class="col-xs-12 col-sm-12 col-md-8 col-lg-6">
                    @Html.TextBoxFor(model => model.Phone, new { @class = "form-control", @placeHolder = "Cep Telefonunuzu Yazınız" })
                    @Html.ValidationMessageFor(model => model.Phone)
                </div>
            </div>
            <div class="form-group">
                <label for="Phone" class="col-xs-12 col-sm-12 col-md-3 col-lg-3 control-label">E-Posta Adresiniz <span class="requireStar">*</span> : </label>
                <div class="col-xs-12 col-sm-12 col-md-8 col-lg-6">
                    @Html.TextBoxFor(model => model.EMail, new { @class = "form-control", @placeHolder = "E-Posta Adresinizi Yazınız" })
                    @Html.ValidationMessageFor(model => model.EMail)
                </div>
            </div>
            <div class="form-group">
                <label for="Phone" class="col-xs-12 col-sm-12 col-md-3 col-lg-3 control-label">Ön Yazı <span class="requireStar">*</span> : </label>
                <div class="col-xs-12 col-sm-12 col-md-8 col-lg-6">
                    @Html.TextAreaFor(model => model.Information, new { @class = "form-control", @placeHolder = "İlgilendiğiniz pozisyon ve yetenekleriniz hakkında ön yazı giriniz" })
                    @Html.ValidationMessageFor(model => model.Information)
                </div>
            </div>
            <div class="form-group">
                <label for="Phone" class="col-xs-12 col-sm-12 col-md-3 col-lg-3 control-label">CV Yükleme <span class="requireStar">*</span> : </label>
                <div class="col-xs-12 col-sm-12 col-md-8 col-lg-6">
                    <input type="file" name="File" id="File" class="form-control" />
                </div>
            </div>
        
        

            <div class="form-group">
                <label for="CaptchaInputText" class="col-xs-12 col-sm-12 col-md-3 col-lg-3 control-label">Doğrulama Kodu<span class="requireStar">*</span> : </label>
                <div class="col-xs-12 col-sm-12 col-md-8 col-lg-6">
                    <div class="captcha">
                        @Html.Captcha("Yenile", "Doğrulama kodunu giriniz.", 5, "Bu alan zorunludur.")
                        <div class="captchaBG">
                        </div>
                    </div>
                </div>
            </div>
            <div class="form-group">
                <div class="col-xs-12 col-sm-12 col-md-3 col-lg-3">
                    @Html.ValidationSummary(true, "Başvuru formu gönderilemedi. Lütfen eksik bilgileri kontrol ediniz.")
                </div>
            </div>
            <div class="form-group">
                <div class="col-xs-12 col-sm-12 col-lg-offset-3 col-lg-9 col-md-offset-3 col-md-9">
                    <a href="/" class="btn btn-custom1">Geri</a>
                    <input type="submit" class="btn btn-custom1" value="Gönder" />
                </div>
            </div>
        }
    </div>
</div>
<script>
    $(function ()
    {
        $(".info-list").each(function ()
        {
            if ($(this).attr("id") == "menuInfo")
            {
                $(this).css("display", "block");
            }
        });
        $("#mnCareer").addClass("menuActive");
    });
</script>
